package com.ukao.steward.bean;

import com.ukao.steward.eventbus.BatchEvent;

/**
 * Created by ukaodev on 2017/6/29.
 */

public class BaseBean<T>  {

    public int httpCode;
    public String msg;
    public T data;


    public int getHttpCode() {
        /*401 未登录 403 无效的accessToken*/
        if (httpCode==403||httpCode==401){

            BatchEvent.postNoData(BatchEvent.Message.againlogin);

        }
        return httpCode;
    }

    public String getMsg() {
        return msg;
    }

    public T getData() {
        return data;
    }
}
